<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>开设课程</title>
		<script type="text/javascript" src="__JS__/jshelper.js"></script> 
		<script type="text/javascript" src="__JS__/menu.js"></script>
		<script type="text/javascript" src="__JS__/leftmenubar.js"></script>
		<link rel="stylesheet" type="text/css" href="__CSS__/header.css" />
		<script type="text/JavaScript">
			function classedit(id){
				window.location.href="__URL__/classedit/id/"+id;
			}
			function classfile(id){
				window.location.href="__URL__/classfile/id/"+id;
			}
			function classdelete(id){
				if (confirm("你确定要删除吗")==true) {
					//posthelper([["id",id],],'__URL__/classdelete');
					postwith('__URL__/classdelete',{id:id});
				}
			}
			</script>
</head>
<body>
<!-- layout::Auth:header::0 -->
<div class="nowposition">
	当前位置：
	<a href='__APP__/index/index'  class="nowpositionhref">主页</a>>
	<a href='__URL__/index'  class="nowpositionhref">后台管理</a>>
	<a href=""  class="nowpositionhref">教学班管理</a>
</div>
	<!-- layout::Auth:leftmenu::0 -->
<div class="classdetail">
	<div align="right" style="width:240px;">
		<a href='__URL__/classadd'  class="classaddhref">开设教学班</a>
	</div>
				<!--显示教学班-->
				<div id="class_Show" >
					<table width="562" border="0" align="center" cellpadding="0px" cellspacing="0px">
						<thead  style=" font-weight:bold; font-size:20px; background-color:f0f0f0;">
							<tr id="table_class_show_title">
								<td style="width:150px">教学班序号</td>
								<td style="width:150px">课程名称</td>
								<td style="width:150px">授课教师</td>
								<td style="width:50px">操作</td>
							</tr>
						</thead>
						<load href"__PUBLIC__/js/list_show.js">
						<tbody id="tab">
							<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr id="table_class_show">
									<td style="width:180px;"><?php echo ($vo["id"]); ?></td>
									<td style="width:180px;"><?php echo ($vo["cname"]); ?></td>
									<td style="width:180px;"><?php echo ($vo["nname"]); ?></td>
									<td style="width:190px">
										<a href="#" onClick="classedit('<?php echo ($vo["id"]); ?>')" class="blue">编辑</a>
										<a href="#" onClick="classdelete('<?php echo ($vo["id"]); ?>')" class="red">删除</a>
										<a href="#" onClick="classfile('<?php echo ($vo["id"]); ?>')" class="grey">学生管理</a>
										<!--<input type="button" name="classedit" onClick="classedit('<?php echo ($vo["id"]); ?>')" value="编辑">
										<input name="delete_class" type="reset" onClick="classdelete('<?php echo ($vo["id"]); ?>')" value="删除">
										<input type="button" name="classfile" onClick="classfile('<?php echo ($vo["id"]); ?>')" value="学生管理">-->
									</td>
								</tr><?php endforeach; endif; else: echo "" ;endif; ?>
						</tbody>		
					</table>
				</div>	
					<div align="right" class="green-black" style="width:850px; margin-top:20px;">
						<?php echo ($page); ?>
					</div>
</body>
</html>